﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ElectroSystem.Models
{
    public class LoginModel
    {
        [Required(ErrorMessage="Please enter your Username")]
        public string Username { get; set; }

        [Required(ErrorMessage = "Please enter your Token")]
        public string Token { get; set; }

        [Required(ErrorMessage = "Please enter your Pin Number")]
        [RegularExpression(@"^[0-9]{4}$", ErrorMessage = "Enter a 4-digit pin")]
        public int PinNumber { get; set; }
    }
}